package com.robot.member.client;

import com.robot.member.client.impl.AdClientImpl;
import com.robot.member.client.impl.OrdersClientImpl;
import com.robot.member.pojo.client.Ad;
import com.robot.member.pojo.client.Banner;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author lin
 */
@Component
@FeignClient(value = "robot-ad", fallback = AdClientImpl.class)
public interface AdClient {
    /**
     * 根据position和status查找广告列表
     *
     * @param status
     * @return
     */
    @GetMapping(value = "ad/third/findAdsByStatusToIndex/{status}", produces = "application/json;charset=utf-8")
    public String thirdFindAdsToIndex(@PathVariable String status);

    /**
     * 根据状态查找轮播图列表
     *
     * @param status
     * @return
     */
    @GetMapping(value = "banner/third/findBannersByStatus/{status}", produces = "application/json;charset=utf-8")
    public String thirdFindBannersByStatus(@PathVariable String status);
}
